i = 1
j = 1
k = 0
for i in range(1,10,1):
    for j in range(1,10,1):
        if j < i:
            k = i * j
            print(j,' X ',i,' = ',k,end='\t' )
        elif j == i:
            k = i * j
            print(j,' X ',i,' = ',k,end='\n')
